-- GENERATED SPELL FOR [Ruuan'ok Cloudgazer] --


function spell0_19985(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19985', 3000, 1)
end

function spell1_19985(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19985', 0, 1)
end

function Sorts_19985(pUnit, Event)
local choix_sorts_19985 = math.random(0, 1)
if choix_sorts_19985 == 0 then
pUnit:RegisterEvent('spell0_19985', 1, 1)
end
if choix_sorts_19985 == 1 then
pUnit:RegisterEvent('spell1_19985', 1, 1)
end
end

function mob19985_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19985', math.random(1500, 3000), 1)
end

function mob19985_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19985_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19985_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19985, 1, 'mob19985_Action')
RegisterUnitEvent(19985, 2, 'mob19985_Leave')
RegisterUnitEvent(19985, 3, 'mob19985_Kill')
RegisterUnitEvent(19985, 4, 'mob19985_Die')
